package com.ruoyi.project.charge.mapper;

import com.ruoyi.project.charge.vo.DispatchParams;
import com.ruoyi.project.charge.vo.RefundParams;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * @auther:YU JIANG
 * @date:2021/7/15
 * @time:18:07
 */
@Mapper
public interface DrugMapper {

    @Update("update drug set drug_stocks = drug_stocks - #{medical_num} where drug_id = #{drug_id} ")
    int updateStock(String medical_num,String drug_id);
}
